package com.gitee.andy.repo.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.gitee.andy.ioc.Bean;
import com.gitee.andy.ioc.Inject;
import com.gitee.andy.repo.ItemRepo;
import com.gitee.andy.repo.UserRepo;

@Bean
public class UserRepoImpl implements UserRepo {

	private static final Logger log = LoggerFactory.getLogger(UserRepoImpl.class);

	@Inject
	private ItemRepo itemRepo;

	@Inject(name = "itemRepo")
	private ItemRepo itemRepo2;

	@Override
	public void printInjects() {
		log.info("has inject {} ", itemRepo == null ? null : itemRepo.getClass().getName());
		log.info("has inject {} ", itemRepo2 == null ? null : itemRepo2.getClass().getName());
	}
}
